import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VCharts from 'v-charts'

import FastAMap from 'fast-amap'

Vue.use(FastAMap)

// 设置你需要加载的高德地图版本
FastAMap.mapOptions.setOptions({
  key: 'edeb762dd9fce5ac7aeadbf2734b7f34',
  version: '2.0'
})
window.store = store
Vue.use(VCharts)

import 'normalize.css'
import './styles/index.less'
import './styles/check.less'

// 自动注册全局组件
import './components'

// 自动注册svg
import './icons'

Vue.config.productionTip = false

Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
